import request from '@/router/axios';
export const getList = (current, size, params) => {
  return request({
    url: '/api/rb-oem/oem/division/division_merchant_store/pageList',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}
export const getDetail = (rpsNo) => {
  return request({
    url: '/api/rb-oem/oem/division/division_merchant_store/bindQuery',
    method: 'get',
    params: {
      rpsNo
    }
  })
}
export const add = (row) => {
  return request({
    url: '/api/rb-oem/oem/division/division_merchant_store/bind',
    method: 'post',
    data: row
  })
}

export const handDivRegist = (row) => {
  return request({
    url: '/api/rb-oem/oem/trade/pos_trade/handDivRegist',
    method: 'post',
    data: row
  })
}

export const divRefundCalc = (params) => {
  return request({
    url: '/api/rb-oem/oem/trade/pos_trade/divRefundCalc',
    method: 'get',
    params: {
      ...params
    }
  })
}

export const handDivRefund = (row) => {
  return request({
    url: '/api/rb-oem/oem/trade/pos_trade/handDivRefund',
    method: 'post',
    data: row
  })
}
